<?php 
$query1 = mysql_query("SELECT url from hinhanh where masp='$iddd' and url like '%/2.jpg'");
   while($rowzoom=mysql_fetch_array($query1))
   {
   $h2 = $rowzoom[0];
   }
$query2 = mysql_query("SELECT url from hinhanh where masp='$iddd' and url like '%/3.jpg'");
   while($rowzoom=mysql_fetch_array($query2))
   {
   $h3 = $rowzoom[0];
   }
$query3 = mysql_query("SELECT url from hinhanh where masp='$iddd' and url like '%/4.jpg'");
   while($rowzoom=mysql_fetch_array($query3))
   {
   $h4 = $rowzoom[0];
   }
$query4 = mysql_query("SELECT url from hinhanh where masp='$iddd' and url like '%2s.jpg'");
   while($rowzoom=mysql_fetch_array($query4))
   {
   $h2s = $rowzoom[0];
   }
$query5 = mysql_query("SELECT url from hinhanh where masp='$iddd' and url like '%3s.jpg'");
   while($rowzoom=mysql_fetch_array($query5))
   {
   $h3s = $rowzoom[0];
   }
$query6 = mysql_query("SELECT url from hinhanh where masp='$iddd' and url like '%4s.jpg'");
   while($rowzoom=mysql_fetch_array($query6))
   {
   $h4s = $rowzoom[0];
   }
?>
<div class='chitiettrai'>
	<a href='<?php echo $h2;?>' class = 'cloud-zoom' id='zoom1' rel="adjustX: 10, adjustY:-4">
		<img src="<?php echo $h2s;?>" alt=''  /></a>
    <a href='<?php echo $h2;?>' class='cloud-zoom-gallery'  rel="useZoom: 'zoom1', smallImage: '<?php echo $h2s;?>' ">
		<img class="zoom-tiny-image" src="<?php echo $h2s;?>" width="95px" height="85px" alt = "Thumbnail 1"/></a>
    <a href='<?php echo $h3;?>' class='cloud-zoom-gallery'  rel="useZoom: 'zoom1', smallImage: ' <?php echo $h3s;?>'">
		<img src="<?php echo $h3s;?>" alt = "Thumbnail 2" border="0" width="95px" height="85px" class="zoom-tiny-image"/></a>                  
    <a href='<?php echo $h4;?>' class='cloud-zoom-gallery'  rel="useZoom: 'zoom1', smallImage: '<?php echo $h4s;?>' ">
		<img src="<?php echo $h4s;?>" alt = "Thumbnail 3" border="0" width="95px" height="85px" class="zoom-tiny-image"/></a></p>
</div>